<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>第九十三节课</title>
    <link rel="stylesheet" href="../css/common.css">
    <script type="text/javascript" src="../js/jquery.js"></script>
    <script>
        jQuery.fn.test = function () {
            //alert(this[0].nodeName);
            return this.each(function () {
                console.log(this.nodeName);
            })
        };
        $(function () {
            $("body *").click(function () {
                //$(this).test();
                console.log(this);
                console.log($(this));
                $(this).test().html(this.nodeName).hide(5000);
            });
            /*$("#aa").click(function(){
             $(this).test();
             });*/
        })
    </script>
</head>
<body>
<input type="button" value="jQuery自定义命令测试"/>

<div>
    div
</div>

<p>
    p
</p>

<span>
span
</span>
</body>
</html>
